import QtQuick 2.15
import QtQuick.Controls 2.15
import '../component'
ApplicationWindow{
	id: root
	visible: true
	width: bg.width
	height: bg.height
		
    Image{
		id:bg
	    source: '/resources/assets/background.png'
    }
	
	MouseArea{
		id:backgroundClicker
		anchors.fill:parent
		onClicked:{
		
		}
	}
	ClickableImage{
		id:rocket1
		x:20;y:100
		source: '/resources/assets/triangle_red.png'
		onClicked:{
			x += 5
		}
		z:10 // z轴顺序，堆叠顺序
	}
	ClickableImage{
		id:rocket2
		x:140;y:100
		source: '/resources/assets/triangle_red.png'
		smooth:true  // need antialising
		onClicked:{
			rotation += 5
		}
	}
	ClickableImage{
		id:rocket3
		x:240;y:100
		source: '/resources/assets/triangle_red.png'
		smooth: true // need antialising
		onClicked:{
			rotation += 5
			scale -= 0.05
		}
	}
	
}